package cn.lingyangwl.agile.food.model.rqrs.store;

import cn.lingyangwl.agile.model.constants.ValidationCons;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

/**
 * 门店设置请求
 * @author shenguangyang
 */
@Data
public class StoreSettingReq {
    @NotNull(message = ValidationCons.NOT_EMPTY)
    private Long id;

    @ApiModelProperty(value = "外卖包装费类型: 0按商品收费, 1按单收费")
    private String bagType;

    @ApiModelProperty(value = "外卖包装费")
    private BigDecimal bagPrice;

    @NotNull(message = ValidationCons.NOT_EMPTY)
    @ApiModelProperty(value = "店内包装费类型: 0按商品收费, 1按单收费")
    private String storeBagType;

    @ApiModelProperty(value = "店内包装费")
    private BigDecimal storeBagPrice;

    @ApiModelProperty(value = "配送方式")
    @NotNull(message = ValidationCons.NOT_EMPTY)
    @Size(min = 1, message = "请选择配送方式")
    private List<String> deliveryWays;
}
